package com.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Tag {

  private long id;
  private long pid;
  private String tupian;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone = "CMT+8")
  private Date starttime;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone = "CMT+8")
  private Date overtime;
  private String isdelete;
  private String authtatus;
  private String detail;

  public String getDetail() {
    return detail;
  }

  public void setDetail(String detail) {
    this.detail = detail;
  }

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }


  public long getPid() {
    return pid;
  }

  public void setPid(long pid) {
    this.pid = pid;
  }


  public String getTupian() {
    return tupian;
  }

  public void setTupian(String tupian) {
    this.tupian = tupian;
  }


  public Date getStarttime() {
    return starttime;
  }

  public void setStarttime(Date starttime) {
    this.starttime = starttime;
  }


  public Date getOvertime() {
    return overtime;
  }

  public void setOvertime(Date overtime) {
    this.overtime = overtime;
  }


  public String getIsdelete() {
    return isdelete;
  }

  public void setIsdelete(String isdelete) {
    this.isdelete = isdelete;
  }


  public String getAuthtatus() {
    return authtatus;
  }

  public void setAuthtatus(String authtatus) {
    this.authtatus = authtatus;
  }

  @Override
  public String toString() {
    return "Tag{" +
            "id=" + id +
            ", pid=" + pid +
            ", tupian='" + tupian + '\'' +
            ", starttime=" + starttime +
            ", overtime=" + overtime +
            ", isdelete='" + isdelete + '\'' +
            ", authtatus='" + authtatus + '\'' +
            ", detail='" + detail + '\'' +
            '}';
  }

  public Tag() {
  }

  public Tag(long id, long pid, String tupian, Date starttime, Date overtime, String isdelete, String authtatus, String detail) {
    this.id = id;
    this.pid = pid;
    this.tupian = tupian;
    this.starttime = starttime;
    this.overtime = overtime;
    this.isdelete = isdelete;
    this.authtatus = authtatus;
    this.detail = detail;
  }
}
